﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using Broker.View.Comm;
using Telerik.Windows.Controls;

namespace Broker.View.Comm
{
    public static class Tools
    {

        public static void ShowMask(dynamic d, bool isMask, string message)
        {
            RadBusyIndicator busy = d.FindChildByType<RadBusyIndicator>();
            busy.IsBusy = isMask;
            busy.BusyContent = "正在加载数据...";
            if (!string.IsNullOrEmpty(message))
            {
                busy.BusyContent = message;
            }
        }
    }
}
